Carbon

     

Determining Attributes of the Thread Manager

To determine if the Thread Manager is available and which features are supported, call the Gestalt function with the selector gestaltThreadMgrAttr . The Gestalt function returns information by setting or clearing bits in the response parameter. The following constants define the bits currently used.

enum {                                              /* Gestalt selectors */
#define gestaltThreadMgrAttr            'thds'      /* Thread Manager attributes */
    gestaltThreadMgrPresent                 = 0,    
    gestaltSpecificMatchSupport             = 1,    
    gestaltThreadsLibraryPresent            = 2     
};
gestaltThreadMgrPresent
This bit is set if the Thread Manager is present.

gestaltSpecificMatchSupport
This bit is set if the Thread Manager supports the allocation of threads based on an exact match with the requested stack size. If this bit is not set, the Thread Manager allocates threads based on the closest match to the requested stack size.

gestaltThreadsLibraryPresent
This bit is set if the native version of the threads library has been loaded.

© 2000 Apple Computer, Inc. – (Last Updated 09 May 00)